<%@ page contentType="text/html;charset=utf-8"%>
<HTML>
	<HEAD>
		<TITLE>西安交通大学钱学森图书馆信息发布系统发布系统</TITLE>
	</HEAD>
	<BODY onmouseover='window.status="Welcome to  Xi’an Jiaotong University Library."'
		text=#000000 bgColor=#ffffff onload=document.forms[0].name.focus();>
		<STYLE type=text/css>
		.textfield {
			BORDER-RIGHT: 1px inset;
			BORDER-TOP: 1px inset;
			FONT-SIZE: 14pt;
			VERTICAL-ALIGN: text-bottom;
			BORDER-LEFT: 1px inset;
			BORDER-BOTTOM: 1px inset;
			FONT-FAMILY: "宋体";
			BACKGROUND-COLOR: #f7fcfc
		}
		</STYLE>
		<form method="post" name="LoginFrom" onsubmit="return checkform1(this)"
			action="<%=request.getContextPath()%>/j_spring_security_check" >
		<CENTER>
		<TABLE cellSpacing=0 cellPadding=0 border=0>
			<TBODY>
			<TR vAlign=top>
			<TD width=600>
				<CENTER>
					<IMG src="<%=request.getContextPath()%>/jsp/manage/images/web_welcome.gif" width="520" height="177" border=0></IMG>
				</CENTER>
			</TD>
			</TR>
			</TBODY>
		</TABLE>
<TABLE cellSpacing=0 cellPadding=0 border=0>
	<TBODY>
	<TR vAlign=top>
	<TD width=600>
	<CENTER>
		<TABLE cellSpacing=0 cellPadding=0 border=0>
		<TBODY>
		<TR vAlign=top>
			<TD width=277 colSpan=3>
				<IMG src="<%=request.getContextPath()%>/jsp/manage/images/web_logintop.gif" width="277" height="40" border=0></IMG>
			</TD>
		</TR>
		<TR vAlign=top>
			<TD width=19 background="<%=request.getContextPath()%>/jsp/manage/images/web_loginleft.gif" rowSpan=4></TD>
			<TD width=249>
				<FONT face=Verdana size=2>登录名</FONT>
			</TD>
			<TD width=9 background="<%=request.getContextPath()%>/jsp/manage/images/web_loginright.gif" rowSpan=4></TD>
		</TR>
		<TR vAlign=top>
			<TD width=249>
				<INPUT class=textfield type="text" maxLength=256 size=22 name="j_username">
				<BR>
				<BR>
			</TD>
		</TR>
		<TR vAlign=top>
			<TD width=249>
				<FONT face=Verdana size=2>密码</FONT>
			</TD>
		</TR>
		<TR vAlign=top>
			<TD width=249><input class=textfield type="password" maxlength=256 size=22 name="j_password"></TD>
		</TR>
		<TR vAlign=top>
			<TD width=277 colSpan=3>
				<INPUT type="image" value="submit" src="<%=request.getContextPath()%>/jsp/manage/images/web_loginbottom.gif" name="Image4" border=0>
			</TD>
		</TR>
		<TR vAlign=top>
			<TD height=25></TD>
		</TR>
		</TBODY>
		</TABLE>
	</CENTER>
	</TD>
	</TR>
	<TR vAlign=top>
		<TD colSpan=3>
			<div align="center">
				<FONT face=Verdana color=red style="font-size: 12px">
					请填写用户名、口令（注意字母大小写）登陆。</FONT>
			</div>
		</TD>
	</TR>
	<TR>
		<TD align="middle" height=5>
			<HR width="90%" SIZE=1>
		</TD>
	</TR>
	<TR>
		<TD align=middle height=15>
			<FONT face=Verdana size=2><B>
				<A title=点击返回系统首页 href="http://202.117.24.24//">西安交通大学钱学森图书馆</A>. &copy;2004.
			</FONT>
		</TD>
	</TR>
</TBODY>
</TABLE>
</CENTER>
<script type="" language="javascript">
function checkform1(form)
{
        if( form.j_username.value=="" || form.j_username.value==null) {
                alert("用户名不能为空");
                form.j_username.focus();
                return false;
        }
		if (!checkId(form.j_username.value)) {
                alert("用户名错误！用户名必须是字母数字或_！");
                return false;
        }
        if (!checkId(form.j_password.value)) {
                alert("错误！密码必须是字母数字或_！");
                return false;
        }
		if( form.j_password.value=="" || form.j_password.value.length >20) {
                alert("密码不能为空而且必须小于50位");
                form.j_password.focus();
                return false;
        }
      return true;
}
function checkId(input)
{
        var checkOK = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_";
        var checkStr = input;

        for (i=0;i < checkStr.length;i++)
        {
                ch = checkStr.charAt(i);

                for (j = 0;  j < checkOK.length;  j++)
                        if (ch == checkOK.charAt(j))
                                break;
            if (j == checkOK.length)
                  {
                        return 0;
                        break;
                }
        }
        return 1;
 }
</script>
<BR>
</FORM>

</body>
</html>
